using UnityEngine;
using System.Collections;

public class Splash : MonoBehaviour
{
	public string scene;
	//public GUITexture fade;
	
	// Update is called once per frame
	void Update()
	{
		if(Input.GetKeyDown(KeyCode.Space) ||
		   Input.GetKeyDown(KeyCode.Return))
		{
			OnComplete();
		}
	}
	
	public void OnComplete()
	{
		Application.LoadLevel(scene);
	}
}
